home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / textual / tex / files / !tex / TeXsource / beebe / com / 00make next >
Encoding:
Text File  |  1987-01-23  |  2.6 KB  |  72 lines

  1. $ !=====================================================================
  2. $ ! Makefile for files in directory [.TEX.DVI]
  3. $ !
  4. $ ! Since VMS C is a separately licensed (and  expensive)  product, many
  5. $ ! PLOT79 sites will not have it.  In order to make it  possible to use
  6. $ ! the software in this   directory,      we   try to  link  using  the
  7. $ ! NON-shareable C run-time  library,     VAXCRTL.OLB,  instead  of the
  8. $ ! shareable version (which might be VMS release-dependent).   Also, we
  9. $ ! set the default file protection for .OBJ  and .EXE files  created by
  10. $ ! this command procedure to  values which  EXCLUDE delete permission.
  11. $ ! That way, clean-up by [--]00CLEAN.COM will never remove these files.
  12. $ !
  13. $ ! [24-Nov-86]
  14. $ !=====================================================================
  15. $ save_prot = f$environment("PROTECTION")
  16. $ on control_y then -
  17.     goto done
  18. $ if f$search("sys$share:vaxcrtl.olb") .nes. "" then -
  19.     CLIB :== [--]unixclib.olb/library,sys$share:vaxcrtl.olb/library
  20. $ if f$search("sys$share:vaxcrtl.olb") .eqs. "" then -
  21.     CLIB :== [--]unixclib.olb/library,[]cc.opt/option
  22. $ set protection=(s:re,o:re,g:re,w:re)/default
  23. $ if f$search("sys$system:vaxc.exe") .nes. "" then goto HAVEC
  24. $ write sys$output "No C compiler available"
  25. $ goto more
  26. $ HAVEC:
  27. $ ccom cp
  28. $ ccom dvi*
  29. $ ccom echoall
  30. $ ccom lptops
  31. $ ccom macjet
  32. $ ccom macprx
  33. $ ccom texidx
  34. $ ccom tosprx
  35. $ ccom vaxvms
  36. $ ccom wsltex
  37. $ MORE:
  38. $ !
  39. $ ! PLT:UNIXCLIB contains replacements for standard Unix
  40. $ ! routines which VMS C does not have.
  41. $ if f$search("[--]unixclib.olb") .eqs. "" then -
  42.     library /create [--]unixclib.olb
  43. $ set file /protection=(w:rwe) [--]unixclib.olb
  44. $ library [--]unixclib.olb vaxvms.obj.0
  45. $ set file /protection=(w:re) [--]unixclib.olb
  46. $ !
  47. $ link /nomap/exec=[--] CP,'CLIB'
  48. $ link /nomap/exec=[--] DVIALW,'CLIB'
  49. $ link /nomap/exec=[--] DVIBIT,'CLIB'
  50. $ link /nomap/exec=[--] DVICAN,'CLIB'
  51. $ ! DVIGD not of interest outside Utah
  52. $ ! link /nomap/exec=[--] DVIGD,'CLIB'
  53. $ link /nomap/exec=[--] DVIIMP,'CLIB'
  54. $ link /nomap/exec=[--] DVIJEP,'CLIB'
  55. $ link /nomap/exec=[--] DVIJET,'CLIB'
  56. $ link /nomap/exec=[--] DVIM72,'CLIB'
  57. $ link /nomap/exec=[--] DVIMAC,'CLIB'
  58. $ link /nomap/exec=[--] DVIMPI,'CLIB'
  59. $ link /nomap/exec=[--] DVIO72,'CLIB'
  60. $ link /nomap/exec=[--] DVIOKI,'CLIB'
  61. $ link /nomap/exec=[--] DVIPRX,'CLIB'
  62. $ link /nomap/exec=[--] DVITOS,'CLIB'
  63. $ link /nomap/exec=[--] ECHOALL,'CLIB'
  64. $ link /nomap/exec=[--] LPTOPS,'CLIB'
  65. $ link /nomap/exec=[--] MACJET,'CLIB'
  66. $ link /nomap/exec=[--] MACPRX,'CLIB'
  67. $ link /nomap/exec=[--] TEXIDX,'CLIB'
  68. $ link /nomap/exec=[--] TOSPRX,'CLIB'
  69. $ link /nomap/exec=[--] WSLTEX,'CLIB'
  70. $ done:
  71. $ set protection=('save_prot') /default
  72.